package com.todod.base.module.base.dal.mysql.rtmaintain;

import java.util.*;

import com.todod.base.framework.common.pojo.PageResult;
import com.todod.base.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.todod.base.framework.mybatis.core.mapper.BaseMapperX;
import com.todod.base.module.base.dal.dataobject.rtmaintain.RtMaintainDO;
import org.apache.ibatis.annotations.Mapper;
import com.todod.base.module.base.controller.admin.rtmaintain.vo.*;

/**
 * 实时数据维护 Mapper
 *
 * @author 超管儿
 */
@Mapper
public interface RtMaintainMapper extends BaseMapperX<RtMaintainDO> {

    default PageResult<RtMaintainDO> selectPage(RtMaintainPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<RtMaintainDO>()
                .betweenIfPresent(RtMaintainDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(RtMaintainDO::getId));
    }

}